[QUIZ] Test your understanding of SQL - Part 3
- Question 1: In SQL, what is the ALTER TABLE clause used for?
- Use to add, delete and modify columns in an existing table.
- Used to insert data into tables in a database.
- Use to delete the table in the database.
- Used to delete data from tables in the database.
-
- Question 2: The HAVING clause can only be used with .
- INSERT statement
- JOIN statement
- DELETE statement
- SELECT statement
-
- Question 3: Which of the following statements is true?
- TRUNCATE TABLE must be used in conjunction with the WHERE clause.
- TRUNCATE TABLE has the same function as the DELETE command but has no WHERE clause and is used to delete records from an existing table in SQL.
- TRUNCATE TABLE deletes the table from the database
-
- Question 4: Which of the following SQL statements is correct?
- SELECT * FROM Sales WHERE Date BETWEEN '10 / 12/2005 'AND' January 01, 2006 '
- SELECT FROM Sales WHERE Date BETWEEN '10 / 12/2005 'AND' January 01, 2006 '
- SELECT FROM Sales WHERE Date BETWEEN ('10/12/2005', 'January 01, 2006')
-
- Question 5: What is the CREATE TABLE statement used for?
- Create a new database table
- Create a stored procedure
- Create database view
-
- Question 6: RDBMS stands for .?
- Real Database Management System
- Relational Database Management System
- Read Database Master System
-
- Question 7: Which of the following functions is a set function in SQL?
- AVG
- WOOL
- JOIN
- LEFT
-
- Question 8: Which of the following SQL statements takes the 'Success' string?
- SELECT 'Success'
- SELECT 'Success'
- SELECT LEFT ('Success is all I need.', 15)
-
- Question 9: What does the following SQL statement do:
SELECT Khachhang, COUNT(Dondathang) FROM Sales
GROUP BY Khachhang
HAVING COUNT(Dondathang) >5
- Select all customers from the Sales table that made more than 5 orders.
- Select all customers from the Sales table.
- Select the total number of orders from the Sales table, if this number is greater than 5
-
- Question 10: Which of the following SQL statements will select all records with all their columns from a table named Sales?
- DELETE FROM Sales
- SELECT * FROM SALES WHERE OrderID <1
- SELECT * FROM Sales
-
- Question 11: Which of the following SQL statements counts the records in the 'Sales' table?
- SELECT COUNT (*) FROM Sales
- SELECT COUNT (*) IN Sales
- SELECT NUM () FROM Sales
- SELECT COUNTER (*) FROM Sales
-
- Question 12: What is the INSERT command used to do?
- To retrieve data.
- To insert data.
- To modify data.
-
- Question 13: Which of the following SQL statements deletes all records in the Sales table?
- DELETE FROM Sales
- DELETE Sales
- DELETE * FROM Sales
- DELETE ALL Sales
-
- Question 14: Which element is behind the WHERE clause in SQL?
- The table name is used to retrieve the record.
- Conditions need to be met for returned goods.
- List of selected columns
-
- Question 15: Which of the following SQL statements correctly writes the syntax?
- SELECT * FROM Table1 WHERE Column1 => 10
- SELECT * FROM Table1 WHERE Column1 = = 10
- SELECT * FROM Table1 WHERE Column1> = 10
-
4 ★ | 1 Vote
You should read it
- [QUIZ] Test your understanding of SQL - Part 1
- [QUIZ] Test your understanding of SQL - Part 6
- [QUIZ] Test your understanding of SQL - Part 7
- [QUIZ] Check your understanding of SQL - Part 2
- Test about database security P8
- What do you know about NoSQL Database?
- eQuiz - Multiple choice test on SQL
- Test about database security P12
May be interested
- [QUIZ] Test your understanding of SQL - Part 4let's try our knowledge with multiple choice questions about sql database management system.
- [QUIZ] Test your understanding of SQL - Part 5multiple-choice questions on sql help you familiarize and review useful knowledge for work and learning sql language.
- [QUIZ] Test your understanding of SQL - Part 6in order to serve your work and your study, along with sql lessons, quantrimang offers a variety of useful questions.
- [QUIZ] Test your understanding of SQL - Part 7part 7 of the sql quiz goes into the sql practice exercises that follow the previous period.
- Test of CSS knowledge - Part 5set of multiple choice questions about css programming language, invite readers to test their knowledge on this topic. with 15 questions including many answers, choose the best answer.
- Test of CSS knowledge - Part 6test your knowledge of css with interesting multiple choice questions.